/**
 * 接口名
 */
export const API_NAME = {
    queryPrimaryCategory: "/category/queryPrimaryCategory",
    getCategoryLabelInfo: "/admin/question/category/getCategoryLabelInfo",
    queryCategoryByPrimary: "/category/queryCategoryByPrimary",
    queryLabelByCategoryId: "/label/queryLabelByCategoryId",
    queryCategoryAndLabel: "/category/queryCategoryAndLabel",
};

/**
 * 分类颜色
 */
export const CATEGORY_BACK_COLOR = [
    "#23b2ff",
    "#ea7d4d",
    "#e93532",
    "#343d71",
    "#dc4ad6",
    "#72b633",
    "#9047de",
    "#dc4077",
    "#dc4077",
];

/**
 * 分类显示数
 */
export const CATEGORY_SHOW_COUNT = 4;

/**
 * 一级分类mock
 */
export const MOCK_CATEGORY_LIST = [
    { title: "后端", total: 50, id: "1", categoryName: "后端", count: 50 },
    { title: "前端1", total: 50, id: "2", categoryName: "前端", count: 50 },
    { title: "算法", total: 30, id: "3", categoryName: "算法", count: 30 },
    { title: "数据库", total: 40, id: "4", categoryName: "数据库", count: 40 },
    { title: "运维", total: 20, id: "5", categoryName: "运维", count: 20 },
    { title: "测试", total: 25, id: "6", categoryName: "测试", count: 25 },
    { title: "产品", total: 15, id: "7", categoryName: "产品", count: 15 },
    { title: "设计", total: 18, id: "8", categoryName: "设计", count: 18 },
];

/**
 * 二级分类mock
 */
export const MOCK_LABEL_LIST = [
    {
        id: "101",
        categoryName: "编程语言",
        labelDTOList: [
            { id: "1001", labelName: "Java" },
            { id: "1002", labelName: "Python" },
            { id: "1003", labelName: "JavaScript" },
            { id: "1004", labelName: "Go" },
            { id: "1005", labelName: "C++" },
            { id: "1006", labelName: "TypeScript" },
        ],
    },
    {
        id: "102",
        categoryName: "框架",
        labelDTOList: [
            { id: "1007", labelName: "Spring" },
            { id: "1008", labelName: "React" },
            { id: "1009", labelName: "Vue" },
            { id: "1010", labelName: "Django" },
            { id: "1011", labelName: "Flask" },
            { id: "1012", labelName: "Express" },
        ],
    },
    {
        id: "103",
        categoryName: "数据库",
        labelDTOList: [
            { id: "1013", labelName: "MySQL" },
            { id: "1014", labelName: "PostgreSQL" },
            { id: "1015", labelName: "MongoDB" },
            { id: "1016", labelName: "Redis" },
            { id: "1017", labelName: "SQLite" },
        ],
    },
    {
        id: "104",
        categoryName: "工具",
        labelDTOList: [
            { id: "1018", labelName: "Git" },
            { id: "1019", labelName: "Docker" },
            { id: "1020", labelName: "Kubernetes" },
            { id: "1021", labelName: "Jenkins" },
        ],
    },
];

/**
 * 题目mock
 */
export const MOCK_DATA_LIST = [
    {
        questionTitle: "什么是防抖和节流？有什么区别？如何实现",
        tags: [
            { name: "排序", id: 590 },
            { name: "数学", id: 5050 },
            { name: "穷举", id: 596 },
            { name: "贪心", id: 592 },
            { name: "二分", id: 5058 },
        ],
        id: 0,
        grade: 1,
        questionType: 6,
        difficulty: 1,
    },
    {
        questionTitle:
            "非空数组，某元素只出现1次，其余出现2次，找到出现1次的元素",
        tags: [
            { name: "数学", id: 5050 },
            { name: "穷举", id: 596 },
        ],
        id: 1,
        grade: 2,
        questionType: 6,
        difficulty: 1,
    },
    {
        questionTitle: "Proxy、Observable的区别",
        tags: [
            { name: "贪心", id: 592 },
            { name: "二分", id: 5058 },
        ],
        id: 2,
        grade: 3,
        questionType: 3,
    },
    {
        questionTitle: "谈谈浏览器的回流与重绘，如何优化dom渲染呢",
        tags: [
            { name: "字符串", id: 579 },
            { name: "模拟", id: 595 },
        ],
        id: 3,
        grade: 1,
        questionType: 1,
    },
    {
        questionTitle: "API指标有哪些，为什么有白屏现象，考虑哪些方向优化",
        tags: [
            { name: "字符串", id: 579 },
            { name: "模拟", id: 595 },
        ],
        id: 4,
        grade: 2,
        questionType: 4,
    },
    {
        questionTitle: "将两个升序链表合并为一个新的升序链表并返回",
        tags: [{ name: "数学", id: 5050 }],
        id: 5,
        grade: 1,
        questionType: 2,
    },
    {
        questionTitle: "对MVP架构的理解",
        tags: [
            { name: "递归", id: 591 },
            { name: "动态规划", id: 593 },
        ],
        id: 6,
        grade: 3,
        questionType: 5,
    },
    {
        questionTitle: "SPA页面的前端路由实现方案",
        tags: [
            { name: "排序", id: 590 },
            { name: "数组", id: 578 },
        ],
        id: 7,
        grade: 2,
        questionType: 1,
    },
    {
        questionTitle: "怎么看 nodejs 可支持高并发",
        tags: [
            { name: "数学", id: 5050 },
            { name: "模拟", id: 595 },
        ],
        id: 8,
        grade: 2,
        questionType: 2,
    },
    {
        questionTitle: "二叉树遍历",
        tags: [
            { name: "树", id: 583 },
            { name: "搜索", id: 3381 },
        ],
        id: 9,
        grade: 3,
        questionType: 4,
    },
    {
        questionTitle: "玛雅人的密码",
        tags: [
            { name: "图", id: 584 },
            { name: "搜索", id: 3381 },
        ],
        id: 10,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "求最大最小数",
        tags: [],
        id: 11,
        grade: 1,
        questionType: 1,
    },
    {
        questionTitle: "最小邮票数",
        tags: [{ name: "动态规划", id: 593 }],
        id: 12,
        grade: 1,
        questionType: 1,
    },
    {
        questionTitle: "abc",
        tags: [{ name: "穷举", id: 596 }],
        id: 13,
        grade: 1,
        questionType: 5,
    },
    {
        questionTitle: "求root(N, k)",
        tags: [
            { name: "递归", id: 591 },
            { name: "数学", id: 5050 },
            { name: "二分", id: 5058 },
        ],
        id: 14,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "n的阶乘",
        tags: [{ name: "数学", id: 5050 }],
        id: 15,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "特殊乘法",
        tags: [
            { name: "模拟", id: 595 },
            { name: "数组", id: 578 },
            { name: "数学", id: 5050 },
        ],
        id: 16,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "今年的第几天？",
        tags: [
            { name: "递归", id: 591 },
            { name: "数学", id: 5050 },
            { name: "穷举", id: 596 },
        ],
        id: 17,
        grade: 1,
        questionType: 2,
    },
    {
        questionTitle: "完数VS盈数",
        tags: [{ name: "数学", id: 5050 }],
        id: 18,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "递推数列",
        tags: [
            { name: "动态规划", id: 593 },
            { name: "数学", id: 5050 },
        ],
        id: 19,
        grade: 1,
        questionType: 1,
    },
    {
        questionTitle: "最大序列和",
        tags: [{ name: "动态规划", id: 593 }],
        id: 20,
        grade: 1,
    },
    {
        questionTitle: "最小花费",
        tags: [
            { name: "动态规划", id: 593 },
            { name: "图", id: 584 },
        ],
        id: 21,
        grade: 1,
        questionType: 2,
    },
    {
        questionTitle: "N的阶乘",
        tags: [{ name: "数学", id: 5050 }],
        id: 22,
        grade: 1,
    },
    {
        questionTitle: "剩下的树",
        tags: [
            { name: "数组", id: 578 },
            { name: "数学", id: 5050 },
            { name: "哈希", id: 585 },
            { name: "栈", id: 581 },
        ],
        id: 23,
        grade: 1,
        questionType: 5,
    },
    {
        questionTitle: "10进制 VS 2进制",
        tags: [
            { name: "数学", id: 5050 },
            { name: "位运算", id: 5074 },
        ],
        id: 24,
        grade: 1,
        questionType: 3,
    },
    {
        questionTitle: "查找学生信息",
        tags: [
            { name: "数组", id: 578 },
            { name: "模拟", id: 595 },
        ],
        id: 25,
        grade: 1,
        questionType: 2,
    },
];
